import http from "@/utils/http";

interface GetSliderData {
  // 根据实际情况定义具体的字段
  list: [];
}

interface ApiResponse<T> {
  // 定义 API 返回的数据结构
  meta: {
    code: string;
    msg: string;
    success: boolean;
    timestamp: string;
    version: string;
  };
  data: T;
}
export function getSlider(): Promise<ApiResponse<GetSliderData>> {
  return http({
    url: "/api/slider/getSliders",
    method: "get",
  });
}
